package service

import (
	{{.TableCamelName}}Api "mldong/api/{{.TableCamelNameLower}}"
	"reflect"
)

type I{{.TableCamelName}}Service interface {
	/**
	* 添加{{.Remark}}
	 */
	Save(req *{{.TableCamelName}}Api.SaveReq) (res bool, err error)
	/**
	* 修改{{.Remark}}
	 */
	Update(req *{{.TableCamelName}}Api.UpdateReq) (res bool, err error)
	/**
	* 删除{{.Remark}}
	 */
	Remove(ids []string) (res bool, err error)
	/**
	* {{.Remark}}详情
	 */
	Detail(id string) (res {{.TableCamelName}}Api.{{.TableCamelName}}VO, err error)
	/**
	* {{.Remark}}分页查询
	 */
	Page(req *{{.TableCamelName}}Api.PageReq) (res {{.TableCamelName}}Api.{{.TableCamelName}}PageVO, err error){{ if .IsTree }}
	/**
	* {{.Remark}}列表
	 */
	List(req *{{.TableCamelName}}Api.ListReq) (res []{{.TableCamelName}}Api.{{.TableCamelName}}VO, err error)
	/**
	* {{.Remark}}树
	 */
	Tree(req *{{.TableCamelName}}Api.TreeReq) (res []{{.TableCamelName}}Api.{{.TableCamelName}}VO, err error){{ end}}
}

var {{.TableCamelName}}ServiceType = reflect.TypeOf((*I{{.TableCamelName}}Service)(nil)).Elem()
